package games;

public class Highscore {

private int gameID;
private char [] [] championName = new char [3] [5];
private int highScores [] = new int [3];
	

public Highscore()
{
	int counter;
	
	for (counter=0;counter<highScores.length;counter++)
		{
		highScores[counter]=0;
		}
	
}





/**
 * @author Tavin
 * 
 * Date 1.4.2001
 * 
 * Check if player wit giveb Points is a champion
 * 
 * @param points
 * @return
 */

public boolean isChampion(int points)
{
	if (points>highScores[2])
		return(true);
		
return(false);	
}





public void insertChampion(int points)
{
	
		if (points<highScores[1])
			{	
			highScores[2]=points;
			}
			
		else if (points<highScores[0])
			{	
			highScores[2]=highScores[1];
			highScores[1]=points;
			
			}

		else if (points>highScores[0])
			{	
			highScores[2]=highScores[1];
			highScores[1]=highScores[0];
			highScores[0]=points;
			}

		
}


public void copyName(int source, int destination)
{
	int counter;
	
	for (counter=0;counter<championName[0].length;counter++)
		{
		championName[destination] [counter] =championName[source] [counter];
		}
}



public void inputName()
{
	
}



}
